package com.handyshop.mall.basic.core.constants;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.io.Serializable;

/**
 * 错误码
 *
 * @author hs
 * @date 2020/3/11 14:19
 */
@Getter
@AllArgsConstructor
public enum ErrorEnum implements Serializable {
    /**
     * 错误码列表
     */
    SUCCESS("00000", "成功"),
    OPERATION_FAILED("00001", "操作失败"),
    PARAM_NULL("B0001", "必填参数为空"),
    AUTHORIZATION_FAILURE("C0001", "没有授权，禁止访问"),
    OAUTH_TOKEN_FAILURE("C0002", "TOKEN 错误"),
    ;

    private final String code;
    private final String msg;

}
